package csc.fresher.entity;

public class DepositTransferInfo extends DepositTransaction{
	private String firstName;
	private String lastName;
	private String midName;
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public String getMidName() {
		return midName;
	}
	public void setMidName(String midName) {
		this.midName = midName;
	}


	public DepositTransferInfo(DepositTransaction depositTransaction, Customer customer){
		super(depositTransaction.getFunds(), depositTransaction.getBeginTime(), depositTransaction.getEndTime(), depositTransaction.getCurrentBalance(), 
				depositTransaction.getAfterBalance(), depositTransaction.getTransactionType(),
				depositTransaction.getReceiverID(), depositTransaction.getSenderID(), depositTransaction.getTransactionState(), depositTransaction.getDepositAccountNumber(),
				depositTransaction.getCreatedBy(), depositTransaction.getApprovedBy(), depositTransaction.isInternetTransaction(), depositTransaction.getContent());
		
		setTransactionID(depositTransaction.getTransactionID());
		this.firstName = customer.getFirstName();
		this.lastName = customer.getLastName();
		this.midName = customer.getMidName();
	}
}
